$(function () {
    var options = {
        toolbar: "#ywcb_import_content_toolbar",
        fitColumns: true,
        fit: true,
        singleSelect: true,
        checkbox: true,
        checkOnSelect: false,
        selectOnCheck: false,
        rownumbers: true,
        showFooter: true,
        autoRowHeight: true,
        nowrap: false,
        columns: [
            [
                {field: 'zy', title: '摘要', width: 50,align: 'center'},
                {field: 'km', title: '科目', width: 50,align: 'center'},
                {field: 'jf', title: '借方', width: 30,align: 'center', formatter:function(value){
                    var sl = formatJe2(value,",");
                    return sl;
                }},
                {field: 'df', title: '贷方', width: 30,align: 'center', formatter:function(value){
                    var sl = formatJe2(value,",");
                    return sl;
                }}
            ]
        ],
        url: $.webPath() + '/cwgl/ywcb/findywcbfl',
        queryParams: {ywcbId: $("#ywcb_import_content_toolbar [name='ywcbId']").val()}
    };

    var grid = $('#ywcb_import_content_datagrid').edatagrid(options);
});

